@extends('model/admin')
@section('title','商品分类列表')
@section('content')
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span><i class="icon-table"></i>商品分类列表</span>
        </div>
        <div class="mws-panel-body no-padding">
            <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid"><div id="DataTables_Table_1_length" class="dataTables_length"><label>Show <select size="1" name="DataTables_Table_1_length" aria-controls="DataTables_Table_1"><option value="10" selected="selected">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option></select> entries</label></div><div class="dataTables_filter" id="DataTables_Table_1_filter"><label>Search: <input aria-controls="DataTables_Table_1" type="text"></label></div><table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
                <thead>
                    <tr role="row">
                    <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 192px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">分类ID</th>
                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 190px;" aria-label="Browser: activate to sort column ascending">类别名</th>
                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 132px;" aria-label="Platform(s): activate to sort column ascending">父类ID</th>
                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 163px;" aria-label="Engine version: activate to sort column ascending">分类路径</th>
                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 132px;" aria-label="Platform(s): activate to sort column ascending">操作</th>
                    </tr>
                </thead>
                
            <tbody role="alert" aria-live="polite" aria-relevant="all">
            @foreach($res as $value)
            	<tr class="odd">
                    <td class="  sorting_1">{{$value['id']}}</td>
                    <td class=" ">{{$value['name']}}</td>
                    <td class=" ">{{$value['pid']}}</td>
                    <td class=" ">{{$value['path']}}</td>
                    <td><span class="btn-group">
                        <a href="/admin/goodstype/{{$value['id']}}/edit" class="btn btn-small"><i class="icol-pencil"></i></a>
                        <a href="/admin/type/delete?id={{$value['id']}}" class="btn btn-small"><i class="icol-bin-closed"></i></a>
                    </span></td>
                </tr>
			@endforeach
                </tbody></table><div class="dataTables_info" id="DataTables_Table_1_info">Showing 1 to 1 of 1 entries</div><div class="dataTables_paginate paging_full_numbers" id="DataTables_Table_1_paginate"><a tabindex="0" class="first paginate_button paginate_button_disabled" id="DataTables_Table_1_first">First</a><a tabindex="0" class="previous paginate_button paginate_button_disabled" id="DataTables_Table_1_previous">Previous</a><span><a tabindex="0" class="paginate_active">1</a></span><a tabindex="0" class="next paginate_button paginate_button_disabled" id="DataTables_Table_1_next">Next</a><a tabindex="0" class="last paginate_button paginate_button_disabled" id="DataTables_Table_1_last">Last</a></div></div>
        </div>
    </div>
@endsection